package com.dy.agent.agent.api.exception;

public enum CommonErrorCode implements BaseErrorCode {

	UNKNOW(1, "未知类型错误"),

	PARAM_ERROR(400, "请求参数不合法"),

	REQUIRE_PARAM(401, "缺少必要的请求参数"),

	BUSINESS_ERROR(800, "业务处理异常"),

	NEED_RE_LOGIN(900, "权限已变更，请重新登录"),

	SYSTEM_ERROR(9999, "系统处理异常"),;

	private int code;

	private String msg;

	private CommonErrorCode(int code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	@Override
	public int getCode() {
		return code;
	}

	@Override
	public String getMsg() {
		return msg;
	}

}
